<template>
  <div style="width: 100%;height: 100%">
    <iframe style="width: 100%;height: 100%;border: 0" :src="diagramUrl"
            scrolling=auto></iframe>
  </div>
</template>

<script>
  import Config from '../config'

  export default {
    name: 'Diagram',
    data() {
      return {
        processDefinitionId: "",
        diagramUrl: ""
      }
    },
    created: function () {
      this.processDefinitionId = this.$route.params.processDefinitionId;
      this.diagramUrl=Config.url+"bpmn-js/properties-panel/index.html?processDefinitionId="+this.processDefinitionId;
    },
    methods: {}
  }

</script>

<style scoped>

</style>
